<form class="layui-form" action="" method="post" name="myform" id="myform">
	<input name="action" id="action" type="hidden" value="del" />
	<div class="manniucms-sub-content">
		<div class="layui-box">
			<fieldset class="layui-elem-field layui-field-title">
			<legend>菜单列表</legend>
				<div class="layui-field-box">
					<table class="layui-table">
						<colgroup>
							<col width="60">
							<col width="80">
							<col width="80">
							<col width="300">
							<col width="200">
							<col>
						</colgroup>
						<thead>
							<tr>
								<th class="th-text-center"><input type="checkbox" lay-skin="primary" lay-filter="allChoose"></th>
								<th class="th-text-center">排序</th>
								<th class="th-text-center">可用</th>
								<th>名称</th>
								<th>标记模块</th>
								<th>操作</th>
							</tr> 
						</thead>
						<tbody>
							{volist name="list" id="top"}
							<tr>
								<td class="text-center"><input type="checkbox" name="ids[]" lay-skin="primary" value="{$top.id}"></td>
								<td class="text-center"><input type="text" name="data[{$top.id}][displayorder]" autocomplete="off" class="layui-input displayorder" value="{$top.displayorder}"></td>
								<td class="text-center"><i class="fa {if !$top.hidden}fa-check-circle{else}fa-times-circle{/if}" style="color:#1d9d74;font-size:18px;"></i></td>
								<td><i class="{$top.icon}"></i>{$top.name}</td>
								<td>{$top.mark}</td>
								<td>
									<div class="layui-btn-group">
										<a class="layui-btn layui-btn-small layui-btn-primary" href="{:url('add','pid='.$top.id)}">
											<i class="layui-icon">&#xe654;</i> 增加
										</a>
										<a class="layui-btn layui-btn-small layui-btn-primary" href="{:url('edit','id='.$top.id)}">
											<i class="layui-icon">&#xe642;</i> 修改
										</a>
										<a class="layui-btn layui-btn-small layui-btn-primary" href="javascript:;" onclick="mn_confirm_url('确定删除 {$top.name} 菜单吗？','{:url('del',['id'=>$top['id']])}')">
											<i class="layui-icon">&#xe640;</i> 删除
										</a>
									</div>
								</td>
							</tr>
								{if isset($top.left)}
									{volist name="top.left" id="left"}
									<tr>
										<td class="text-center"><input type="checkbox" name="ids[]" lay-skin="primary" value="{$left.id}"></td>
										<td class="text-center"><input type="text" name="data[{$left.id}][displayorder]" autocomplete="off" class="layui-input displayorder" value="{$left.displayorder}"></td>
										<td class="text-center"><i class="fa {if !$left.hidden}fa-check-circle{else}fa-times-circle{/if}" style="color:#1d9d74;font-size:18px;"></i></td>
										<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;└─&nbsp;<i class="{$left.icon}"></i>{$left.name}</td>
										<td>{$left.mark}</td>
										<td>
											<div class="layui-btn-group">
												<a class="layui-btn layui-btn-small layui-btn-primary" href="{:url('add','pid='.$left.id)}">
													<i class="layui-icon">&#xe654;</i> 增加
												</a>
												<a class="layui-btn layui-btn-small layui-btn-primary" href="{:url('edit','id='.$left.id)}">
													<i class="layui-icon">&#xe642;</i> 修改
												</a>
												<a class="layui-btn layui-btn-small layui-btn-primary" href="javascript:;" onclick="mn_confirm_url('确定删除 {$left.name} 菜单吗？','{:url('del',['id'=>$left['id']])}')">
													<i class="layui-icon">&#xe640;</i> 删除
												</a>
											</div>
										</td>
									</tr>
									{if isset($left.link)}
										{volist name="left.link" id="link"}
										<tr>
											<td class="text-center"><input type="checkbox" name="ids[]" lay-skin="primary" value="{$link.id}"></td>
											<td class="text-center"><input type="text" name="data[{$link.id}][displayorder]" autocomplete="off" class="layui-input displayorder" value="{$link.displayorder}"></td>
											<td class="text-center"><i class="fa {if !$link.hidden}fa-check-circle{else}fa-times-circle{/if}" style="color:#1d9d74;font-size:18px;"></i></td>
											<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├─&nbsp;<i class="{$link.icon}"></i>{$link.name}</td>
											<td>{$link.mark}</td>
											<td>
												<div class="layui-btn-group">
													<a class="layui-btn layui-btn-small layui-btn-primary" href="{:url('edit','id='.$link.id)}">
														<i class="layui-icon">&#xe642;</i> 修改
													</a>
													<a class="layui-btn layui-btn-small layui-btn-primary" href="javascript:;" onclick="mn_confirm_url('确定删除 {$link.name} 菜单吗？','{:url('del',['id'=>$link['id']])}')">
														<i class="layui-icon">&#xe640;</i> 删除
													</a>
												</div>
											</td>
										</tr>
										{/volist}
									{/if}
									{/volist}
								{/if}
							{/volist}
						</tbody>
					</table>
				</div>
			</fieldset>
		</div>
	</div>
	<!-- 底部 -->
	<div class="manniucms-sub-footer layui-box">
		<div class="msf-box">
			<div class="layui-inline msf-box-sub1">
				<input type="checkbox" lay-skin="primary" lay-filter="allChoose">
			</div>
			<div class="layui-inline">
				<a class="layui-btn layui-btn-small layui-btn" onclick="mn_confirm_set_all('确定排序已选中内容吗？','order')"><i class="layui-icon">&#xe60a;</i> 排序</a>
			</div>
			<div class="layui-inline">
				<a class="layui-btn layui-btn-small layui-btn-danger" onclick="mn_confirm_set_all('确定删除已选中内容吗？','del')"><i class="layui-icon">&#xe640;</i> 删除</a>
			</div>
		</div>
	</div>
</form>